package com.ruoyi.document.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 合同签约管理对象 contract
 *
 * @author ruoyi
 * @date 2023-03-03
 */
public class Contract extends BaseEntity
{
    private static final long serialVersionUID = 1L;
    /** 组名 */
    //@Excel(name = "组名")
    private String groupName;
    /** 文件名 */
    @Excel(name = "文件名")
    private String fileName;
    /** 文件大小 */
   // @Excel(name = "文件大小")
    private Long fileSize;
    /** 文件类型 */
    //@Excel(name = "文件类型")
    private String fileType;
    /** 旧的文件名称 */
    //@Excel(name = "旧的文件名称")
    private String oldFileName;
    /** 合同编号 */
    private Integer conId;

    /** 经办人 */
    //@Excel(name = "经办人")
    private String operator;

    /** 签约人 */
    @Excel(name = "签约人")
    private String signatory;

    /** 合同金额 */
    @Excel(name = "合同金额")
    private BigDecimal amount;

    /** 币种id */
    private Integer currencyId;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getCurrencyName() {
        return currencyName;
    }

    public void setCurrencyName(String currencyName) {
        this.currencyName = currencyName;
    }

    /** 币种名称 */
    @Excel(name = "币种名称")
    private String currencyName;



    /** 文件上传 */
//    @Excel(name = "文件上传")
//    private String fileUpload;

    /** 结算类型（1  收款，0 未收款） */
    @Excel(name = "结算类型", readConverterExp = "1=,收=款，0,未=收款")
    private String settlement;

    /** 合同起草时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "合同起草时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date contractTime;

    /** 预计生效时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "截至时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date effectiveTime;


    /** 版本号 */
    //@Excel(name = "版本号")
    private Integer version;

    /** 合同类型名称 */
    private Long contractId;



    public String getContractName() {
        return contractName;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public Long getFileSize() {
        return fileSize;
    }

    public void setFileSize(Long fileSize) {
        this.fileSize = fileSize;
    }

    public String getFileType() {
        return fileType;
    }

    public void setFileType(String fileType) {
        this.fileType = fileType;
    }

    public String getOldFileName() {
        return oldFileName;
    }

    public void setOldFileName(String oldFileName) {
        this.oldFileName = oldFileName;
    }

    public void setContractName(String contractName) {
        this.contractName = contractName;
    }

    /** 合同类型名称 */
    @Excel(name = "合同类型名称")
    private String contractName;
    /** 签约公司 */
    @Excel(name = "签约公司")
    private String contractCompany;
    @Excel(name = "审核状态(0:未审核 1: 审核中 2: 审核通过 3:审核未通过)")
    private Integer state;
    /** 员工编号 */
    private Integer empId;

    /** 员工名称 */
    @Excel(name = "经办人")
    private String empName;
    /** msg */
//    @Excel(name = "msg")
    private String isBlack;

    public String getIsBlack() {
        return isBlack;
    }

    public void setIsBlack(String isBlack) {
        this.isBlack = isBlack;
    }

    public Integer getEmpId() {
        return empId;
    }

    public void setEmpId(Integer empId) {
        this.empId = empId;
    }

    public String getEmpName() {
        return empName;
    }

    public void setEmpName(String empName) {
        this.empName = empName;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public void setConId(Integer conId)
    {
        this.conId = conId;
    }

    public Integer getConId()
    {
        return conId;
    }
    public void setOperator(String operator)
    {
        this.operator = operator;
    }

    public String getOperator()
    {
        return operator;
    }
    public void setSignatory(String signatory)
    {
        this.signatory = signatory;
    }

    public String getSignatory()
    {
        return signatory;
    }
    public void setAmount(BigDecimal amount)
    {
        this.amount = amount;
    }

    public BigDecimal getAmount()
    {
        return amount;
    }
    public void setCurrencyId(Integer currencyId)
    {
        this.currencyId = currencyId;
    }

    public Integer getCurrencyId()
    {
        return currencyId;
    }
    public void setSettlement(String settlement)
    {
        this.settlement = settlement;
    }

    public String getSettlement()
    {
        return settlement;
    }
    public void setContractTime(Date contractTime)
    {
        this.contractTime = contractTime;
    }

    public Date getContractTime()
    {
        return contractTime;
    }
   public void setEffectiveTime(Date effectiveTime)
    {
        this.effectiveTime = effectiveTime;
    }

    public Date getEffectiveTime()
    {
        return effectiveTime;
    }
    public void setVersion(Integer version)
    {
        this.version = version;
    }

    public Integer getVersion()
    {
        return version;
    }
    public void setContractId(Long contractId)
    {
        this.contractId = contractId;
    }

    public Long getContractId()
    {
        return contractId;
    }
    public void setContractCompany(String contractCompany)
    {
        this.contractCompany = contractCompany;
    }

    public String getContractCompany()
    {
        return contractCompany;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("conId", getConId())
            .append("operator", getOperator())
            .append("signatory", getSignatory())
            .append("amount", getAmount())
            .append("currencyId", getCurrencyId())
            .append("settlement", getSettlement())
            .append("contractTime", getContractTime())
            .append("effectiveTime", getEffectiveTime())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("version", getVersion())
            .append("contractId", getContractId())
            .append("contractCompany", getContractCompany())
                .append("groupName", getGroupName())
                .append("fileName", getFileName())

            .toString();
    }
}
